﻿using AutoMapper;
using DefenseQuestion.Application.QuestionBankApplication.Dto;
using DefenseQuestion.Application.UserApplication.Dto;

namespace DefenseQuestion.Application
{
    public class AutoMapperconfig : Profile
    {
        public AutoMapperconfig()
        {
            CreateMap<User, AddUserDto>().ReverseMap();
            //题库
            CreateMap<Question, CreateandUpdateQuestionDto>().ReverseMap();
            CreateMap<Question,QuestionDto>().ReverseMap();
            //题库类型
            CreateMap<QuestionType, QuestionTypeDto>().ReverseMap();
        }
    }
}
